package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author ljw
 * @version 1.0
 * @Date 2025/1/13 19:14
 */
@Data
@TableName(value = "user")
public class User {
    @TableId(type = IdType.AUTO)
    @Schema(description = "用户ID")
    private Long userId;
    @Schema(description = "部门ID")
    private Long deptId;
    @Schema(description = "用户账号")
    private String username;
    @Schema(description = "用户昵称")
    private String nickName;
    @Schema(description = "用户类型 （00系统用户）")
    private String userType;
    @Schema(description = "用户邮箱")
    private String email;
    @Schema(description = "手机号码")
    private String phonenumber;
    @Schema(description = "用户性别 （0男 1女 2未知）")
    private String sex;
    @Schema(description = "头像地址")
    private String avatar;
    @Schema(description = "密码")
    private String password;
    @Schema(description = "账号状态（0正常 1停用）")
    private String status;
    @Schema(description = "删除标志（0代表存在 2代表删除）")
    private String delFlag;
    @Schema(description = "最后登录IP")
    private String loginIp;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Schema(description = "最后登录时间")
    private Date loginDate;
    @Schema(description = "备注")
    private String remark;
}
